#ifndef TERMINATORRECORD_H
#define TERMINATORRECORD_H

#include "ASTM.h"

class TerminatorRecord : public ASTM
{
public:
    enum EndCode {
        Normal = 0,
        NoInfo,
        ErrorRequest
    };

    TerminatorRecord();

    QString endCodeType(EndCode code);

    QString buildRecord() const;
    bool analyzeRecord(const QString &str);

    int frameIndex = 1;
    EndCode endCode = Normal;

private:
    QStringList endCodeList{"N", "I", "Q"};
};

#endif // TERMINATORRECORD_H
